var Router = require('express').Router;
var registerCon = require('../controller/registerCon');

module.exports = function() {
    var router = new Router();

    //注册
    router.route('/register').get(registerCon.register);
    router.route('/registerOrLogin').post(registerCon.registerOrLogin);

    router.route('/text').get(registerCon.registerOrLogin);
    //登录
    return router;
};
